package com.itheima.mall.api.pms;


import com.itheima.mall.mapper.pms.PmsProductCategoryMapper;
import com.itheima.mall.pojo.pms.ProductCategory;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class PmsProductCategoryServiceApiImpl implements PmsProductCategoryServiceApi{
    @Autowired
    private PmsProductCategoryMapper pmsProductCategoryMapper;
    //添加商品分类
    @Override
    public void create(ProductCategory productCategory) {
        pmsProductCategoryMapper.insert(productCategory);
    }

    //删除商品分类
    @Override
    public void delete(ProductCategory productCategory, Long id) {
        pmsProductCategoryMapper.deleteById(productCategory);
    }
}
